From: Tuomas Nurmi Date: Thu, 25 Jul 2024 07:14:22 +0000 (+0000) Subject: status/network: Fix enterprise network connecting from panel X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a21558d67f37b0c9161f3df21678c165004a02a5;p=gnome-shell.git status/network: Fix enterprise network connecting from panel Use the right variable. A static WirelessNetwork._securityTypes variable does exist, but the correct variable when checking autoconnect possibility is this._securityType; this._securityTypes is undefined, causing clicking an enterprise network name in panel network selector do nothing instead of properly opening GNOME Settings panel. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7698 Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index cdc9ba892..6f206ac8e 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -936,8 +936,8 @@ const WirelessNetwork = GObject.registerClass({ canAutoconnect() { const canAutoconnect = - this._securityTypes !== NM.UtilsSecurityType.WPA_ENTERPRISE && - this._securityTypes !== NM.UtilsSecurityType.WPA2_ENTERPRISE; + this._securityType !== NM.UtilsSecurityType.WPA_ENTERPRISE && + this._securityType !== NM.UtilsSecurityType.WPA2_ENTERPRISE; return canAutoconnect; }